package com.ktjy.service.impl;

import com.ktjy.dao.PetDao;
import com.ktjy.entity.Pet;
import com.ktjy.service.PetService;

public class PetServiceImpl implements PetService {
    PetDao petDao;
    public void setPetDao(PetDao petDao) {
        this.petDao = petDao;
    }
    @Override
    public boolean save(Pet pet) {
        return petDao.insertPet(pet)>0;
    }
}
